/**
 * 
 */
package sandBox;

/**
 * @author milk
 *
 */
public class Configuration {
	private static Configuration ref;
	private Configuration(){}//Singleton
	private static final int WIDTH = 640;
	private static final int HEIGHT = 480;
	
	public static synchronized Configuration getConfiguration(){
		if(ref==null){
			ref = new Configuration();
		}
		return ref;
		
	}
	
	public Object clone() throws CloneNotSupportedException{
		throw new CloneNotSupportedException();
		//Para q no nos clonen.
	}
	
	public int getWidth(){
		return WIDTH;
	}
	public int getHeight(){
		return HEIGHT;
	}
}
